package lixp.res;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;


/**
 * 枚举用于定义一些具体的返回码，和基本的返回信息
 */
@ToString
@AllArgsConstructor
@Getter
public enum ResultEnum {
    //
    UNKNOWN_ERROR(-1,"未知错误"),
    Token_NOT_FOUND(-2,"token不存在"),
    Token_ERROR(-3,"token错误"),
    SUCCESS(10000,"成功"),
    USER_NOT_EXIST(1,"用户不存在"),
    USER_IS_EXISTS(2,"用户已存在"),
    DATA_IS_NULL(3,"数据为空"),
    PASSWORD_ERROR(4,"密码错误"),
    USER_LOCKED(5,"用户锁定"),
    NOT_LOGIN(6,"未登录"),
    NOT_ROLE(7,"没有权限"),
    LOGOUT(8,"退出成功"),
    LOGIN_FAILED(9,"登录失败"),
    ;

    private Integer code;
    private String msg;

}
